package com.google.appengine.twitter.security;

public enum AuthenticationResult {

	SUCCESSED {
		@Override
		public boolean successful() {
			return true;
		}

		@Override
		public String getFailureDetail() {
			throw new UnsupportedOperationException("not yet implement");
		}
	}, 
	
	USER_NOT_FOUND {
		@Override
		public String getFailureDetail() {
			return "User not found";
		}

		@Override
		public boolean successful() {
			return false;
		}
	}, 
	
	INCORRECT_CREDENTIAL {
		@Override
		public String getFailureDetail() {
			return "Incorrent credential";
		}

		@Override
		public boolean successful() {
			return false;
		}
	};
	
	
	public abstract boolean successful();
	
	public abstract String getFailureDetail();

}
